﻿@model  P2PWeb.Models.Pager<P2PWeb.Models.Campaign>
@{
    ViewBag.Title = "Index";
}
@using P2PWeb.Controllers;
@using P2PWeb.Common
@using P2PWeb;

<script type="text/javascript" src="@Url.Content("~/Scripts/app/postPager.js")"></script>
<link href="@Url.Content("~/Content/account.css")" rel="stylesheet" type="text/css" />
<link href="@Url.Content("~/Content/myBorrows.css")" rel="stylesheet" type="text/css" />
<link href="@Url.Content("~/Content/pager.css")" rel="stylesheet" type="text/css" />

<div class="main_loan">
    <div class="main_loan_top"></div>
    <div class="main_loan_content clearfjx">
        @{Html.RenderPartial("LeftMenus");}
        <div class="loan_content">
            <div class="inner">
                <div class="breadcrumbs rel">
                    <p>
                        <strong class="gtlt">&gt;&gt;</strong><span class="lay">账户首页</span>
                        <strong class="gtlt">&gt;&gt;</strong><span class="lay cur">我的借款单</span>
                    </p>
                </div>
            </div>
            <div class="loan_box mt30">
                <div class="blue_tip">
                    <p>温馨提示：支付单在未支付状态时，系统将会为您保留24小时有效期，到期即自动撤销。</p>
                </div>
                <div class="loan_box">
                    <div class="invest_table mt30">
                        @*   <table cellpadding="0" cellspacing="0" width="100%">
                            <tbody>
                                <tr class="total_th">
                                    <th class="name">借款单号</th>
                                    <th>借款金额</th>
                                    <th>借款期限</th>
                                    <th>下单时间</th>
                                    <th>订单状态</th>
                                    <th class="last_th">操作</th>
                                </tr>
                                <tr class="">
                                    <th colspan="6">&nbsp;</th>
                                </tr>

                                @foreach (P2PWeb.Models.Campaign campaign in Model.Items)
                                {
                                    <tr class="first_td">
                                        <td class="left_td">@campaign.ID



                                        </td>
                                        <td>@campaign.Amount.ToString("N2") 元</td>
                                        <td>@(campaign.LoanPeriod + "个月")





                                        </td>
                                        <td>@campaign.CreationTime.Value.ToString("yyyy-MM-dd:hh mm ss")</td>
                                        <td class="red">@(((P2PWeb.Common.CampaignState)campaign.Status).GetDisplayName())</td>
                                        <td>-
                                        
                                     
                                        </td>
                                    </tr>
                                }

                            </tbody>
                        </table>*@
                        <div id="borrowsContainer">
                            @{Html.RenderPartial("MyborrowsAjax", Model);}
                        </div>
                        @*    <div class="loan_page">


                            <a class="loan_pagePrev"><span>◀</span>首页</a>





                            <span class="loan_pageOn">1</span>






                            <a class="loan_pageNext"><span>▶</span>尾页</a>


                            <span class="loan_page_txt">转到</span>
                            <input id="pageNo" name="pageNo" type="text">
                            <input value="确定" type="button" style="width: 50px;">
                        </div>*@
                        <!-- 分页显示结束 -->
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="main_loan_bottom"></div>
</div>
